package com.rybbaby.tss.tasks.core.task;

import org.apache.log4j.Logger;

public class BaseTask {
	
	/** 日志记录对象 **/
	protected Logger log;
	/** 是否显示日志 **/
	private boolean isShowLog = true;
	
	public BaseTask (){
		log = Logger.getLogger(this.getClass());
	}
	
	/**
	 * 显示日志
	 * 
	 * @param msg
	 *            日志信息
	 */
	protected void log(String msg) {
		if(isShowLog) {
			log.info(msg);
		}
	}
}
